#!/bin/bash
# Generate DejaVu TDD file from Catalog.osm file

cwd=$PWD

if [ -d  out ] ; then 
	rm -rf out
fi

find src -name "*.cxx" | xargs rm -rf
find src -name "*.hxx" | xargs rm -rf

# Run fmpp in catalog directory with catalog.tdd file. Output - transformed files to ./out directory
./xml.bat

cd out

astyle --quiet --style=ansi --suffix=none --recursive --lineend=linux "*.cpp" "*.h"

cd $cwd

